package com.atguigu.system.manager;

import com.atguigu.model.system.SysOperLog;
import com.atguigu.model.vo.operlog.SysOperLogQueryReqVo;
import com.atguigu.model.vo.operlog.SysOperLogQueryRespVo;
import com.atguigu.system.mapper.SysOperLogMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * <p>
 * SysOperLogManager
 * </p>
 *
 * @author flyduck
 * @since 2023/10/26
 */
@Component
public class SysOperLogManager extends ServiceImpl<SysOperLogMapper, SysOperLog> {

    @Autowired
    private SysOperLogMapper sysOperLogMapper;

    /**
     * 获取分页列表
     * @param pageParam
     * @param sysOperLogQueryVo
     * @return
     */
    public IPage<SysOperLogQueryRespVo> getPageList(Page<SysOperLog> pageParam, SysOperLogQueryReqVo sysOperLogQueryVo) {
        return sysOperLogMapper.getPageList(pageParam,sysOperLogQueryVo);
    }
}
